package com.atguigu.yygh.hosp.Config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: liyangjing
 * @Date: 2022/03/28/22:55
 * @Description:
 */
@Configuration
@MapperScan("com.atguigu.yygh.hosp.Mapper")
public class HospConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return  new PaginationInterceptor();
    }
}
